<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>成绩</title>
    <!--    <link rel="stylesheet" type="text/css" href="../static/css/bootstrap.min.css">-->
    <link rel="stylesheet" type="text/css" href="../static/css/all.css">
</head>
<body>

<div>
    <a href="{{template_xlsx_save_path}}"><input type="button" value="成绩录入文件下载"></a>
</div>

<div>

    <form action="/grhinputscorebyfile?course_id={{course_id}}&course_num={{course_num}}" enctype="multipart/form-data"
          method='POST'>
        <span class="cj">使用文件导入成绩:</span>
        <input type="file" id="file" name="file">
        <input type="submit" value="上传">
    </form>

</div>

<div>
    <form action="/grhinputscore?course_id={{course_id}}&course_num={{course_num}}" method="post">
        <table>
            <tr>
                <th>
                    学号
                </th>
                <th>
                    姓名
                </th>
                <th>
                    班级
                </th>
                <th>
                    分数
                </th>
            </tr>
            {%for student in student_score_results%}
            <tr>
                <td>
                    {{student[0]}}
                    <input type="text" name="{{student[0]}}_id" value="{{student[0]}}" hidden>
                </td>
                <td>
                    {{student[1]}}
                </td>
                <td>
                    {{student[2]}}
                </td>
                <td>
                    <input type="number" name="{{student[0]}}_score" value="{{student[3]}}" min="0" max="100" required>
                </td>
            </tr>
            {% endfor%}
        </table>
        <!--        <input type="reset" value="重置">-->
        <input type="submit" value="确认">
    </form>

</div>
</body>
</html>
